//
// Created by 冷月祭诗魂 on 2025/4/23.
//

#ifndef LIST_H
#define LIST_H
#include <cstdint>

template<typename E> class List {

public:
    virtual int32_t size() = 0;

    virtual bool isEmpty() = 0;

    virtual bool add(E& e) = 0;

    virtual bool add(E&& e) = 0;

    virtual E remove(int32_t index) = 0;

    virtual E get(int32_t index) = 0;


    virtual ~List() =default;
};
#endif //LIST_H
